package com.example.chapter09;

public class test3 {
    public static void main(String[] args) {
        String str1 = "apple";
        String str2 = "Banana";
        System.out.println(str1.compareToIgnoreCase(str2)); // 输出: -1
        String str = "Hello";
        System.out.println(str.contains("ell")); // 输出: true

        StringBuilder sb = new StringBuilder("Hello");
        System.out.println(str.contentEquals(sb)); // 输出: true
    }
}
